package com.yiren.manager.utils;

import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;

/**
 * 用于返回结果
 * 
 * @author 冯胜德
 */
@ApiModel(value = "返回结果")
public class HTTPResult {

	@ApiModelProperty(value = "状态码", dataType = "int")
	private int code = HTTPStatusCode.Success.value();	

	@ApiModelProperty(value = "信息", dataType = "String")
	private String info = "";
	
	@ApiModelProperty(value = "页数", dataType = "long")
	private long pages;

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public long getPages() {
		return pages;
	}

	public void setPages(long pages) {
		this.pages = pages;
	}
	
}